<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面-X-admin2.2</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="css/font.css">
        <link rel="stylesheet" href="css/xadmin.css">
        <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
        <script type="text/javascript" src="lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="js/xadmin.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
            <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
            <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]--></head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row">
                <div class="layui-card-body layui-table-body layui-table-main">
                    <table class="layui-table layui-form">
                        <tr align="center">
                            <td rowspan="2" style="font-size: 16px;">需求调研</td>
                            <td align="left"><div name="xqdyCpjl" id="xqdyCpjl" class="layui-unselect layui-form-checkbox "><span>产品经理</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="xqdyXqfxs" id="xqdyXqfxs" class="layui-unselect layui-form-checkbox "><span>需求分析师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr align="center">
                            <td rowspan="6" style="font-size: 16px;">系统设计</td>
                            <td align="left"><div name="xtsjCpjl" id="xtsjCpjl" class="layui-unselect layui-form-checkbox "><span>产品经理</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="xtsjYyjgsjs" id="xtsjYyjgsjs" class="layui-unselect layui-form-checkbox "><span>应用架构师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="xtsjJcptsjs" id="xtsjJcptsjs" class="layui-unselect layui-form-checkbox "><span>基础平台设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="xtsjKhdapisjs" id="xtsjKhdapisjs" class="layui-unselect layui-form-checkbox "><span>客户端(APP)设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="xtsjQdsjfxs" id="xtsjQdsjfxs" class="layui-unselect layui-form-checkbox "><span>前端设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="xtsjUisjs" id="xtsjUisjs" class="layui-unselect layui-form-checkbox "><span>UI设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr align="center">
                            <td rowspan="5" style="font-size: 16px;">系统开发</td>
                            <td align="left"><div name="xtkfJavayfgcs" id="xtkfJavayfgcs" class="layui-unselect layui-form-checkbox "><span>java研发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="xtkfAzkfgcs" id="xtkfAzkfgcs" class="layui-unselect layui-form-checkbox "><span>安卓开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="xtkfPgkfgcs" id="xtkfPgkfgcs" class="layui-unselect layui-form-checkbox "><span>苹果开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="xtkfCkfgcs" id="xtkfCkfgcs" class="layui-unselect layui-form-checkbox "><span>C#开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="xtkfQdkfgcs" id="xtkfQdkfgcs" class="layui-unselect layui-form-checkbox "><span>前端开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr align="center"><td align="center" style="font-size: 16px;">系统测试</td>
                            <td align="left"><div name="xtcsCsgcs" id="xtcsCsgcs" class="layui-unselect layui-form-checkbox "><span>测试工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr align="center"><td style="font-size: 16px;">业务支撑</td>
                            <td align="left"><div name="ywzcYwjl" id="ywzcYwjl" class="layui-unselect layui-form-checkbox "><span>业务经理</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr align="center"><td style="font-size: 16px;">系统实施</td>
                            <td align="left"><div name="xtssSsgcs" id="xtssSsgcs" class="layui-unselect layui-form-checkbox "><span>实施工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr align="center"><td style="font-size: 16px;">项目管理</td>
                            <td align="left" style="font-size: 16px;"><div name="xmglXmzj" id="xmglXmzj" class="layui-unselect layui-form-checkbox "><span>项目总监</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr align="center"><td style="font-size: 16px;">技术管理</td>
                            <td align="left"><div name="jsglJszj" id="jsglJszj" class="layui-unselect layui-form-checkbox "><span>技术总监</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr align="center">
                            <td rowspan="13" style="font-size: 16px;">二级系统——基础平台</td>
                            <td align="left"><div name="jcptCpjl" id="jcptCpjl" class="layui-unselect layui-form-checkbox "><span>产品经理</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptXqfxs" id="jcptXqfxs" class="layui-unselect layui-form-checkbox "><span>需求分析师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptYyjgsjs" id="jcptYyjgsjs" class="layui-unselect layui-form-checkbox "><span>应用架构师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptJcptsjs" id="jcptJcptsjs" class="layui-unselect layui-form-checkbox "><span>基础平台设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptKhdappsjs" id="jcptKhdappsjs" class="layui-unselect layui-form-checkbox "><span>客户端(APP)设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptQdsjsjs" id="jcptQdsjsjs" class="layui-unselect layui-form-checkbox "><span>前端设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptUisjs" id="jcptUisjs" class="layui-unselect layui-form-checkbox "><span>UI设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptJavayfgcs" id="jcptJavayfgcs" class="layui-unselect layui-form-checkbox "><span>java研发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptAzkfgcs" id="jcptAzkfgcs" class="layui-unselect layui-form-checkbox "><span>安卓开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptPgkfgcs" id="jcptPgkfgcs" class="layui-unselect layui-form-checkbox "><span>苹果开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptCkfgcs" id="jcptCkfgcs" class="layui-unselect layui-form-checkbox "><span>C#开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptQdkfgcs" id="jcptQdkfgcs" class="layui-unselect layui-form-checkbox "><span>前端开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jcptCsgcs" id="jcptCsgcs" class="layui-unselect layui-form-checkbox "><span>测试工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr align="center">
                            <td rowspan="13" style="font-size: 16px;">二级系统——应用层</td>
                            <td align="left"><div name="yycCpjl" id="yycCpjl" class="layui-unselect layui-form-checkbox "><span>产品经理</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycXqfxs" id="yycXqfxs" class="layui-unselect layui-form-checkbox "><span>需求分析师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycYyjgsjs" id="yycYyjgsjs" class="layui-unselect layui-form-checkbox "><span>应用架构师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycJcptsjs" id="yycJcptsjs" class="layui-unselect layui-form-checkbox "><span>基础平台设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycKhdappsjs" id="yycKhdappsjs" class="layui-unselect layui-form-checkbox "><span>客户端(APP)设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycQdsjsjs" id="yycQdsjsjs" class="layui-unselect layui-form-checkbox "><span>前端设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycUisjs" id="yycUisjs" class="layui-unselect layui-form-checkbox "><span>UI设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycJavayfgcs" id="yycJavayfgcs" class="layui-unselect layui-form-checkbox "><span>java研发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycAzkfgcs" id="yycAzkfgcs" class="layui-unselect layui-form-checkbox "><span>安卓开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycPgkfgcs" id="yycPgkfgcs" class="layui-unselect layui-form-checkbox "><span>苹果开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycCkfgcs" id="yycCkfgcs" class="layui-unselect layui-form-checkbox "><span>C#开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycQdkfgcs" id="yycQdkfgcs" class="layui-unselect layui-form-checkbox "><span>前端开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="yycCsgcs" id="yycCsgcs" class="layui-unselect layui-form-checkbox "><span>测试工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr align="center">
                            <td rowspan="13" style="font-size: 16px;">二级系统——接口层</td>
                            <td align="left"><div name="jkcCpjl" id="jkcCpjl" class="layui-unselect layui-form-checkbox "><span>产品经理</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcXqfxs" id="jkcXqfxs" class="layui-unselect layui-form-checkbox "><span>需求分析师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcYyjgsjs" id="jkcYyjgsjs" class="layui-unselect layui-form-checkbox "><span>应用架构师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcJcptsjs" id="jkcJcptsjs" class="layui-unselect layui-form-checkbox "><span>基础平台设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcKhdappsjs" id="jkcKhdappsjs" class="layui-unselect layui-form-checkbox "><span>客户端(APP)设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcQdsjsjs" id="jkcQdsjsjs" class="layui-unselect layui-form-checkbox "><span>前端设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcUisjs" id="jkcUisjs" class="layui-unselect layui-form-checkbox "><span>UI设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcJavayfgcs" id="jkcJavayfgcs" class="layui-unselect layui-form-checkbox "><span>java研发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcAzkfgcs" id="jkcAzkfgcs" class="layui-unselect layui-form-checkbox "><span>安卓开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcPgkfgcs" id="jkcPgkfgcs" class="layui-unselect layui-form-checkbox "><span>苹果开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcCkfgcs" id="jkcCkfgcs" class="layui-unselect layui-form-checkbox "><span>C#开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcQdkfgcs" id="jkcQdkfgcs" class="layui-unselect layui-form-checkbox "><span>前端开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="jkcCsgcs" id="jkcCsgcs" class="layui-unselect layui-form-checkbox "><span>测试工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>

                        <tr align="center">
                            <td rowspan="13" style="font-size: 16px;">二级系统——服务层</td>
                            <td align="left"><div name="fwcCpjl" id="fwcCpjl" class="layui-unselect layui-form-checkbox "><span>产品经理</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcXqfxs" id="fwcXqfxs" class="layui-unselect layui-form-checkbox "><span>需求分析师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcYyjgsjs" id="fwcYyjgsjs" class="layui-unselect layui-form-checkbox "><span>应用架构师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcJcptsjs" id="fwcJcptsjs" class="layui-unselect layui-form-checkbox "><span>基础平台设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcKhdappsjs" id="fwcKhdappsjs" class="layui-unselect layui-form-checkbox "><span>客户端(APP)设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcQdsjsjs" id="fwcQdsjsjs" class="layui-unselect layui-form-checkbox "><span>前端设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcUisjs" id="fwcUisjs" class="layui-unselect layui-form-checkbox "><span>UI设计师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcJavayfgcs" id="fwcJavayfgcs" class="layui-unselect layui-form-checkbox "><span>java研发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcAzkfgcs" id="fwcAzkfgcs" class="layui-unselect layui-form-checkbox "><span>安卓开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcPgkfgcs" id="fwcPgkfgcs" class="layui-unselect layui-form-checkbox "><span>苹果开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcCkfgcs" id="fwcCkfgcs" class="layui-unselect layui-form-checkbox "><span>C#开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcQdkfgcs" id="fwcQdkfgcs" class="layui-unselect layui-form-checkbox "><span>前端开发工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                        <tr><td><div name="fwcCsgcs" id="fwcCsgcs" class="layui-unselect layui-form-checkbox "><span>测试工程师</span><i class="layui-icon layui-icon-ok"></i></div></td></tr>
                    </table>
                    <div style="text-align: right;">
                        <button class="layui-btn layui-btn-lg layui-btn-normal" id="btnUse_template"><i class="iconfont">&#xe747; </i> 使用该模板新建合同</button></div>
                </div>
            </div>
        </div>
        <script>layui.use(['form'],function (){});
            function GetRequest() {
                var url = location.search; //获取url中"?"符后的字串
                console.log(url);
                var theRequest = new Object();
                if (url.indexOf("?") != -1) {
                    var str = url.substr(1);
                    strs = str.split("&");
                    for (var i = 0; i < strs.length; i++) {
                        theRequest[strs[i].split("=")[0]] = decodeURIComponent(strs[i].split("=")[1]);
                    }
                }
                return theRequest;
            }
            function setStyle(data, arr){
                if(data) $('#'+arr).addClass('layui-form-checked');
                    else $('#'+arr).addClass('layui-checkbox-disbaled');
            }
            function getParam(data){
                var url = '';
                for(var k in data){
                    var value = data[k] !==undefined ? data[k] : '';
                    url += `&${k}=${encodeURIComponent(value)}`
                }
                return url ? url.substring(1) : ''
            }
        </script>
        <script>
            var a=GetRequest();
            var modeId=a['modeId'];
            $.ajax({
                method:'get',
                url:"/templateClient/findById",
                data: {
                    modeId: modeId,
                },
                success: function(res) {
                        // var res = JSON.parse(val);
                        //alert("加载数据成功");
                        console.log(res);
                    setStyle(res.data.template.xqdyCpjl, 'xqdyCpjl');
                    setStyle(res.data.template.xqdyXqfxs, 'xqdyXqfxs');
                    setStyle(res.data.template.xtsjCpjl, 'xtsjCpjl');
                    setStyle(res.data.template.xtsjYyjgsjs, 'xtsjYyjgsjs');
                    setStyle(res.data.template.xtsjJcptsjs, 'xtsjJcptsjs');
                    setStyle(res.data.template.xtsjKhdapisjs, 'xtsjKhdapisjs');
                    setStyle(res.data.template.xtsjQdsjfxs, 'xtsjQdsjfxs');
                    setStyle(res.data.template.xtsjUisjs, 'xtsjUisjs');
                    setStyle(res.data.template.xtkfJavayfgcs, 'xtkfJavayfgcs');
                    setStyle(res.data.template.xtkfAzkfgcs, 'xtkfAzkfgcs');
                    setStyle(res.data.template.xtkfPgkfgcs, 'xtkfPgkfgcs');
                    setStyle(res.data.template.xtkfCkfgcs, 'xtkfCkfgcs');
                    setStyle(res.data.template.xtkfQdkfgcs, 'xtkfQdkfgcs');
                    setStyle(res.data.template.xtcsCsgcs, 'xtcsCsgcs');
                    setStyle(res.data.template.ywzcYwjl, 'ywzcYwjl');
                    setStyle(res.data.template.xtssSsgcs, 'xtssSsgcs');
                    setStyle(res.data.template.xmglXmzj, 'xmglXmzj');
                    setStyle(res.data.template.jsglJszj, 'jsglJszj');
                    setStyle(res.data.template.jcptCpjl, 'jcptCpjl');
                    setStyle(res.data.template.jcptXqfxs, 'jcptXqfxs');
                    setStyle(res.data.template.jcptYyjgsjs, 'jcptYyjgsjs');
                    setStyle(res.data.template.jcptJcptsjs, 'jcptJcptsjs');
                    setStyle(res.data.template.jcptKhdappsjs, 'jcptKhdappsjs');
                    setStyle(res.data.template.jcptQdsjsjs, 'jcptQdsjsjs');
                    setStyle(res.data.template.jcptUisjs, 'jcptUisjs');
                    setStyle(res.data.template.jcptJavayfgcs, 'jcptJavayfgcs');
                    setStyle(res.data.template.jcptAzkfgcs, 'jcptAzkfgcs');
                    setStyle(res.data.template.jcptPgkfgcs, 'jcptPgkfgcs');
                    setStyle(res.data.template.jcptCkfgcs, 'jcptCkfgcs');
                    setStyle(res.data.template.jcptQdkfgcs, 'jcptQdkfgcs');
                    setStyle(res.data.template.jcptCsgcs, 'jcptCsgcs');
                    setStyle(res.data.template.yycCpjl, 'yycCpjl');
                    setStyle(res.data.template.yycXqfxs, 'yycXqfxs');
                    setStyle(res.data.template.yycYyjgsjs, 'yycYyjgsjs');
                    setStyle(res.data.template.yycJcptsjs, 'yycJcptsjs');
                    setStyle(res.data.template.yycKhdappsjs, 'yycKhdappsjs');
                    setStyle(res.data.template.yycQdsjsjs, 'yycQdsjsjs');
                    setStyle(res.data.template.yycUisjs, 'yycUisjs');
                    setStyle(res.data.template.yycJavayfgcs, 'yycJavayfgcs');
                    setStyle(res.data.template.yycAzkfgcs, 'yycAzkfgcs');
                    setStyle(res.data.template.yycPgkfgcs, 'yycPgkfgcs');
                    setStyle(res.data.template.yycCkfgcs, 'yycCkfgcs');
                    setStyle(res.data.template.yycQdkfgcs, 'yycQdkfgcs');
                    setStyle(res.data.template.yycCsgcs, 'yycCsgcs');
                    setStyle(res.data.template.jkcCpjl, 'jkcCpjl');
                    setStyle(res.data.template.jkcXqfxs, 'jkcXqfxs');
                    setStyle(res.data.template.jkcYyjgsjs, 'jkcYyjgsjs');
                    setStyle(res.data.template.jkcJcptsjs, 'jkcJcptsjs');
                    setStyle(res.data.template.jkcKhdappsjs, 'jkcKhdappsjs');
                    setStyle(res.data.template.jkcQdsjsjs, 'jkcQdsjsjs');
                    setStyle(res.data.template.jkcUisjs, 'jkcUisjs');
                    setStyle(res.data.template.jkcJavayfgcs, 'jkcJavayfgcs');
                    setStyle(res.data.template.jkcAzkfgcs, 'jkcAzkfgcs');
                    setStyle(res.data.template.jkcPgkfgcs, 'jkcPgkfgcs');
                    setStyle(res.data.template.jkcCkfgcs, 'jkcCkfgcs');
                    setStyle(res.data.template.jkcQdkfgcs, 'jkcQdkfgcs');
                    setStyle(res.data.template.jkcCsgcs, 'jkcCsgcs');
                    setStyle(res.data.template.fwcCpjl, 'fwcCpjl');
                    setStyle(res.data.template.fwcXqfxs, 'fwcXqfxs');
                    setStyle(res.data.template.fwcYyjgsjs, 'fwcYyjgsjs');
                    setStyle(res.data.template.fwcJcptsjs, 'fwcJcptsjs');
                    setStyle(res.data.template.fwcKhdappsjs, 'fwcKhdappsjs');
                    setStyle(res.data.template.fwcQdsjsjs, 'fwcQdsjsjs');
                    setStyle(res.data.template.fwcUisjs, 'fwcUisjs');
                    setStyle(res.data.template.fwcJavayfgcs, 'fwcJavayfgcs');
                    setStyle(res.data.template.fwcAzkfgcs, 'fwcAzkfgcs');
                    setStyle(res.data.template.fwcPgkfgcs, 'fwcPgkfgcs');
                    setStyle(res.data.template.fwcCkfgcs, 'fwcCkfgcs');
                    setStyle(res.data.template.fwcQdkfgcs, 'fwcQdkfgcs');
                    setStyle(res.data.template.fwcCsgcs, 'fwcCsgcs');
                }
            });
        </script>
        <script>
            $('#btnUse_template').on("click",function () {
                var a=GetRequest();
                //console.log(a);
                var modeid=a['modeId'];
                $.ajax({
                    type:'get',
                    url:"/contract/create",
                    dateType: "json",
                    data:{
                        templateId: modeid
                      },
                    success: function(res) {
                        console.log(res);
                        if(res.msg == 'success') {
                            var text = '使用'+modeid+'模板新建合同';
                            xadmin.add_tab(text,'table-add.html?'+getParam(res.data.modeItem)+'&tableId='+res.data.level1SystemId);
                            $('#tab_show').show();
                            top.location.reload();
                            var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
                            parent.layer.close(index);//关闭弹出的子页面窗口
                        } else {
                            alert("发送失败");
                        }
                    },
                    error:function(){
                        alert("测试");
                    }
                });
            })
        </script>
    </body>
</html>

